<html>
<head>
<?php
    include ("./sethead.php");
?>
<script language="javascript" type="text/javascript">
	function QuantityChange(){
		$("#txtIssueAmount").val($("#txtIssueQuantity").val()*$("#txtUnitPrice").val());
	}
	function Total(){
		$("#txtTotal").val($("#txtCurrent").val()-$("#txtLast").val());
	}
	$(document).ready(function(){
            $("#menu_rqfuel").addClass("active");
            $("#txtIssueDate").datepicker({
                  changeMonth: true,
                  changeYear: true,
                  dateFormat: 'dd/mm/yy'
            });
	});
</script>
</head>
<body>
    <div class='main'>
         <?php
            include './menu.php';
        ?>
        <div class='headpage'>
            RQ Fuel
        </div>
        
        <div class='bodypage'>
            <table>
                    <tr>
                            <th colspan="4">Product Code : 
                                <select id="drpProduct" name="drpProduct" class="chosen-select input-m">
                                    <option value="select" selected>-----Select-----</option>
                                </select>
                            </th>
                    </tr>
                    <tr>
                            <td style="text-align:right;">Description : </td>
                            <td><input type="text" name="txtDescription" id="txtDescription" readonly="true" class='input-m'></td>
                            <td style="text-align:right;">Quantity in Stock : </td>
                            <td><input type="text" name="txtQuantityInStock" id="txtQuantityInStock" readonly="true" class='input-m'></td>
                    </tr>
                    <tr>
                            <td style="text-align:right;">Unit Price(Rs.) : </td>
                            <td><input type="text" name="txtUnitPrice" id="txtUnitPrice" readonly="true" class='input-m'></td>
                            <td style="text-align:right;">Amount(Rs.) : </td>
                            <td><input type="text" name="txtAmount" id="txtAmount" readonly="true" class='input-m'></td>
                    </tr>
                    <tr><td><br></td></tr>
                    <tr>
                            <th colspan="4">Issue Detail</th>
                    </tr>
                    <tr>
                        <td class="right">
                            Code No :
                        </td>
                        <td>
                            <select id="drpCodeNo" name="drpCodeNo" class="chosen-select input-s">
                                <option value="select" selected>--Select--</option>
                            </select>
                            <a class="add" href="#">Add</a>
                        </td>
                        <td class="right">
                            Location : 
                        </td>
                        <td>
                            <input type="text" id="txtLocation" class="input-m" readonly="true">
                        </td>
                    </tr>
                    <tr>
                        <td class="right">
                            Description :
                        </td>
                        <td colspan="3">
                            <input type="text" id="txtDescription" class="input-xl" readonly="true">
                        </td>
                    </tr>
                    <tr>
                            <td style="text-align:right;">Issue Date : </td>
                            <td><input type="text" id="txtIssueDate" name="txtIssueDate" readonly="true" class='input-m'></td>
                            <td style="text-align:right;">Issue No : </td>
                            <td><input type="text" id="txtIssueNo" name="txtIssueNo" class='input-m'></td>
                    </tr>
                    <tr>
                            <td style="text-align:right;">Issue Quantity : </td>
                            <td><input type="text" id="txtIssueQuantity" name="txtIssueQuantity" class='input-m'></td>
                            <td style="text-align:right;">Issue Amount (Rs.) : </td>
                            <td><input type="text" id="txtIssueAmount" name="txtIssueAmount" readonly="true" class='input-m'></td>
                    </tr>
                    <tr>
                            <td style="text-align:right;">Last SMU/KM : </td>
                            <td><input type="text" id="txtLast" name="txtLast" readonly="ture" oninput="Total()" class='input-m'></td>
                            <td rowspan="2" style="text-align:right;">Total SMU/KM : </td>
                            <td rowspan="2"><input type="text" id="txtTotal" id="txtTotal" readonly="ture" class='input-m'></td>
                    </tr>
                    <tr>
                            <td style="text-align:right;">Current SMU/KM : </td>
                            <td><input type="text" id="txtCurrent" name="txtCurrent" oninput="Total()" class='input-m'></td>
                    </tr>
                    <tr>
                            <td style="text-align:right;">Sub job Code : </td>
                            <td><select id="drpSubJob" name="drpSubJob" class="chosen-select input-m">
                                    <option value="select" selected>-----Select-----</option>
                                </select>
                            </td>
                    </tr>
                    <tr>
                            <td style="text-align:right;">Remarks : </td>
                            <td colspan="3"><textarea rows="2" cols="61" name="txtaRemark" id="txtaRemark"></textarea></td>
                    </tr>
                    <tr>
                        <th colspan="4"><button>Submit</button></th>
                    </tr>
            </table>
       </div>
  </div>
    <div class="footer">
        <?php
            include './footer.php';
        ?>
    </div>
</body>
</html>